class RotatBtn extends eui.Button {
	private numPanle: NumPanel;
	public constructor() {
		super();
		// this.numPanle = new NumPanel(15, 20, "w_");
		this.skinName = "m_rotation";  //设置皮肤名称
		this.setAvbleState();
		this.addChild(this.numPanle);

		this.numPanle.y = 70;

		this.numPanle.x = 80;

	

	}
	/**
	 * 设置为可用状态
	 */
	public setAvbleState() {
		// this.numPanle.setNum("");
		this.touchEnabled = true;
		this.name = "rotation";
		this.currentState = "";
	}
	/**
	 * 设置为不可用状态
	 */
	public setDisState() {
		// this.numPanle.setNum("");
		this.touchEnabled = false;
		this.name = null;
		this.currentState = "dis";
	}

	public setLableState(str: any) {
		this.touchEnabled = false;
		this.name = null;
		this.currentState = "blck";

		// if (str > 9) {
		// 	this.numPanle.x = 90;
		// } else {
		// 	this.numPanle.x = 80;
		// }
		// this.numPanle.setNum(str);
	}
}